/*
 * String2.cpp
 *
 *  Created on: 2012-5-17
 *      Author: esf
 */

#include "../headfiles/String.h"

namespace java_lang {

char java_lang::String::charAt(int index) {
	return this->string[index];
}
String& java_lang::String::operator +(String& str) {
	this->string += str.string;
	return *this;
}
int java_lang::String::compareTo(String& str) {
	return this->string.compare(str.string);
}
std::string java_lang::String::toString() {
	return this->string;
}

} /* namespace collection */
